package com.appkubes.mall.core.pojo;

import com.appkubes.mall.core.po.MallTaobaoGoodsClassify;
import com.appkubes.mall.core.po.MallTaobaoGoodsClassifyExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface MallTaobaoGoodsClassifyMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_taobao_goods_classify
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallTaobaoGoodsClassifySqlProvider.class, method="countByExample")
    long countByExample(MallTaobaoGoodsClassifyExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_taobao_goods_classify
     *
     * @mbg.generated
     */
    @DeleteProvider(type=MallTaobaoGoodsClassifySqlProvider.class, method="deleteByExample")
    int deleteByExample(MallTaobaoGoodsClassifyExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_taobao_goods_classify
     *
     * @mbg.generated
     */
    @Delete({
        "delete from mall_taobao_goods_classify",
        "where classify_key = #{classifyKey,jdbcType=CHAR}"
    })
    int deleteByPrimaryKey(String classifyKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_taobao_goods_classify
     *
     * @mbg.generated
     */
    @Insert({
        "insert into mall_taobao_goods_classify (classify_key, app_key, ",
        "cid, `name`, pic, ",
        "superior_cid, update_time, ",
        "create_time)",
        "values (#{classifyKey,jdbcType=CHAR}, #{appKey,jdbcType=VARCHAR}, ",
        "#{cid,jdbcType=INTEGER}, #{name,jdbcType=CHAR}, #{pic,jdbcType=VARCHAR}, ",
        "#{superiorCid,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, ",
        "#{createTime,jdbcType=TIMESTAMP})"
    })
    int insert(MallTaobaoGoodsClassify record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_taobao_goods_classify
     *
     * @mbg.generated
     */
    @InsertProvider(type=MallTaobaoGoodsClassifySqlProvider.class, method="insertSelective")
    int insertSelective(MallTaobaoGoodsClassify record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_taobao_goods_classify
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallTaobaoGoodsClassifySqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="classify_key", property="classifyKey", jdbcType=JdbcType.CHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="cid", property="cid", jdbcType=JdbcType.INTEGER),
        @Result(column="name", property="name", jdbcType=JdbcType.CHAR),
        @Result(column="pic", property="pic", jdbcType=JdbcType.VARCHAR),
        @Result(column="superior_cid", property="superiorCid", jdbcType=JdbcType.INTEGER),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP)
    })
    List<MallTaobaoGoodsClassify> selectByExampleWithRowbounds(MallTaobaoGoodsClassifyExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_taobao_goods_classify
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallTaobaoGoodsClassifySqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="classify_key", property="classifyKey", jdbcType=JdbcType.CHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="cid", property="cid", jdbcType=JdbcType.INTEGER),
        @Result(column="name", property="name", jdbcType=JdbcType.CHAR),
        @Result(column="pic", property="pic", jdbcType=JdbcType.VARCHAR),
        @Result(column="superior_cid", property="superiorCid", jdbcType=JdbcType.INTEGER),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP)
    })
    List<MallTaobaoGoodsClassify> selectByExample(MallTaobaoGoodsClassifyExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_taobao_goods_classify
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "classify_key, app_key, cid, `name`, pic, superior_cid, update_time, create_time",
        "from mall_taobao_goods_classify",
        "where classify_key = #{classifyKey,jdbcType=CHAR}"
    })
    @Results({
        @Result(column="classify_key", property="classifyKey", jdbcType=JdbcType.CHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="cid", property="cid", jdbcType=JdbcType.INTEGER),
        @Result(column="name", property="name", jdbcType=JdbcType.CHAR),
        @Result(column="pic", property="pic", jdbcType=JdbcType.VARCHAR),
        @Result(column="superior_cid", property="superiorCid", jdbcType=JdbcType.INTEGER),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP)
    })
    MallTaobaoGoodsClassify selectByPrimaryKey(String classifyKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_taobao_goods_classify
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallTaobaoGoodsClassifySqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") MallTaobaoGoodsClassify record, @Param("example") MallTaobaoGoodsClassifyExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_taobao_goods_classify
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallTaobaoGoodsClassifySqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") MallTaobaoGoodsClassify record, @Param("example") MallTaobaoGoodsClassifyExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_taobao_goods_classify
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallTaobaoGoodsClassifySqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(MallTaobaoGoodsClassify record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_taobao_goods_classify
     *
     * @mbg.generated
     */
    @Update({
        "update mall_taobao_goods_classify",
        "set app_key = #{appKey,jdbcType=VARCHAR},",
          "cid = #{cid,jdbcType=INTEGER},",
          "`name` = #{name,jdbcType=CHAR},",
          "pic = #{pic,jdbcType=VARCHAR},",
          "superior_cid = #{superiorCid,jdbcType=INTEGER},",
          "update_time = #{updateTime,jdbcType=TIMESTAMP},",
          "create_time = #{createTime,jdbcType=TIMESTAMP}",
        "where classify_key = #{classifyKey,jdbcType=CHAR}"
    })
    int updateByPrimaryKey(MallTaobaoGoodsClassify record);
}